home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2000 June / Internet Magazine June 2000.iso / pc / software / windows / building / wirefusion / html / path / path.jar / bob12.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-01-03  |  1.2 KB  |  52 lines

  1. import java.awt.Event;
  2. import java.io.DataInputStream;
  3.  
  4. public class bob12 extends bob {
  5.    public String value;
  6.  
  7.    public bob12(String var1) {
  8.       this.value = var1;
  9.    }
  10.  
  11.    public bob12() {
  12.    }
  13.  
  14.    // $FF: renamed from: rd (java.io.DataInputStream) void
  15.    public void method_0(DataInputStream var1) {
  16.       try {
  17.          this.value = var1.readUTF();
  18.       } catch (Exception var3) {
  19.       }
  20.  
  21.    }
  22.  
  23.    // $FF: renamed from: he (java.awt.Event) void
  24.    public void method_1(Event var1) {
  25.       switch (var1.id) {
  26.          case 1:
  27.             this.value = ((bob12)var1.arg).value;
  28.             ((bob)this).ce(this, 2);
  29.             break;
  30.          case 2:
  31.             ((bob)this).ce(this, 1);
  32.             break;
  33.          case 3:
  34.             this.value = String.valueOf("").concat(String.valueOf(((bob10)var1.arg).value));
  35.             if (this.value.endsWith(".0")) {
  36.                this.value = this.value.substring(0, this.value.length() - 2);
  37.             }
  38.  
  39.             ((bob)this).ce(this, 2);
  40.             break;
  41.          case 4:
  42.             String var2 = ((bob12)var1.arg).value;
  43.             if (var2.equals("\b")) {
  44.                this.value = this.value.substring(0, Math.max(0, this.value.length() - 1));
  45.             } else {
  46.                this.value = String.valueOf(this.value).concat(String.valueOf(var2));
  47.             }
  48.       }
  49.  
  50.    }
  51. }
  52.